﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Master/Site.Master" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="BookClubIt.Login" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<div class="container">
  <div class="login">
  
  <div class="form">
  <h1><small>Log in to bookclubit.com</small></h1>

    <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false">
        <LayoutTemplate>
            <span class="failureNotification">
                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
            </span>
            <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="alert" 
                 ValidationGroup="LoginUserValidationGroup"/>
  
    <table width="100%" cellpadding="0" cellspacing="0">
  <tr>
  <td><asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label></td>
  <td>  <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" 
                             CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required." 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator></td></tr>
   <tr><td><asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label></td><td><asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox><a class="forgot-password" href="#">forgot password?</a>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" 
                             CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required." 
                             ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator></td></tr>
    <tr><td>&nbsp;</td><td> <asp:CheckBox ID="RememberMe" runat="server"/>
                        <asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="inline">Keep me logged in</asp:Label></td></tr>
 <tr><td>&nbsp;</td><td>   <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" CssClass="btn btn-primary" ValidationGroup="LoginUserValidationGroup"/></td></tr> </table>
        </LayoutTemplate>
    </asp:Login>
    </div>

    </div> 

 </div>  
</asp:Content>